#ifndef QClient_H_INCLUDE
#define QClient_H_INCLUDE

#include <map>
#include "../QCommon/events.h"
#include "handlers.h"

using namespace std;
class QClientInit
{
private:
    map<EventType,AbstractHandler*> eh_map;
    void start_handle();
    void generate_map();
    int register_client();
    friend void* event_handle(void*);
public:

    QClientInit()
    {
        register_client();
        this->generate_map();
        this->start_handle();
    }
    ~QClientInit(){}

};

extern int QClientMsqId;
#endif
